package com.wlyuan.open.domain.source;

import com.wlyuan.core.domain.valueobj.TenantId;
import com.wlyuan.core.domain.valueobj.UserId;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author yuanzheng
 */
@Data
public class SourceData implements Serializable {
    private static final long serialVersionUID = -6082433293190117981L;
    private SourceDataId id;
    private String sourceKey;
    private SourceClass sourceClass;
    private String sourceRaw;
    private String sourceReq;
    private SourceStatus status;
    private String appId;
    private TenantId tenantId;
    private String remark;
    private UserId createBy;
    private LocalDateTime createAt;

    public SourceData end(SourceStatus status) {
        this.status = status;
        return this;
    }
}
